package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.OrderItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(OrderItem record);

    OrderItem selectByPrimaryKey(Long id);

    List<OrderItem> selectAll();

    int updateByPrimaryKey(OrderItem record);

    List<OrderItem> selectOrderByUserIdAndStatus(@Param("userId") Long userId, @Param("status") Long status);

    void cancelOrder(Long orderId);
}